/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package assisisw.smartcal.entitysubsystem.exceptions.event;

import assisisw.smartcal.entitysubsystem.Event;
import assisisw.smartcal.entitysubsystem.User;

/**
 *
 * @author Francesco
 */
public class EventDoubleInvitationNotAllowedException extends EventException 
{

    // Instance Fields
    
    /***/
    private final User userDesignedToBeInvitedTwice ;
    
    // Instance Methods
    
    /***/
    public EventDoubleInvitationNotAllowedException ( Event e , User userDesignedToBeInvitedTwice ) 
    {
        super ( e ) ;
        if ( userDesignedToBeInvitedTwice != null )
            this.userDesignedToBeInvitedTwice = userDesignedToBeInvitedTwice ;
        else
            throw new IllegalArgumentException () ;
    }
    
    public User getUserDesignedToBeInvitedTwice () 
    {
        return userDesignedToBeInvitedTwice ;
    }
    
}
